<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />

  <title>Bienvenue: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
  <% javascript formatted_new_home_url("js") %>
</head>
<body>

<div align="center" style="font-size: 12px; font-weight: bold;">
  Bienvenue dans l´interface du Système de supervision du parc informatique
</div>
<div class="supervision">
<% @salles.each do |salle| %>
  <span class="box_salles_index" style="width:<%=h salle.machines.length*120+90 %>px;">
  <table width="100%">
      <tr>
        <td class="hr_salle"><%=h salle.nom_salle %></td>
    </tr>
    <tr>
      <% salle.machines.each do |machine| %>
        <td class="img_pc  <%= machine.urgency -%>" id="<%=h machine.id %>"><%=h machine.nom_machine %></td>
      <% end %>
    </tr>
    <tr>
    <% salle.machines.each do |machine| %>
      <td class="name_pc"><%=h machine.adresse_ip %></td>
    <% end %>
      </tr>
      <tr>
    <% salle.machines.each do |machine| %>
      <td class="state_pc"><%=h machine.display_connect %></td>
    <% end %>
      </tr>

  </table>
</span>

<% end %>
<div style="clear:both;height:15px"></div>
</div>
</body>
</html>
